<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/view/common/includes.jsp" %>
<%@ include file="/WEB-INF/view/inc.jsp" %>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<style>
    .panel-body {
        border-bottom-width: 0px;
        border-left-width: 0px;
    }

    .layout-expand .panel-header {
        border-width: 0px;
    }

</style>
<body class="easyui-layout" data-options="fit:true,border:false">
<!-- 搜索框 -->
<div data-options="region:'north',title:'查询条件',border:false" style="height:80px; overflow: hidden;border: 0px;">
    <form id="searchForm">
        <div class="fitem fl">
            <label>角色名称:</label>
            <input name="roleName" class="easyui-textbox">
        </div>
        <div class="fitem fl">
            <label>状态</label>
            <input name="status" editable="false" class="easyui-combobox"
                   data-options="valueField : 'code',textField : 'name', url:'<%=contextPath%>/sys/codeItems/byCategoryCode?categoryCode=status',
								panelHeight:'auto'">
        </div>
        <div class="fitem searchItem fr">
            <a class="easyui-linkbutton" iconCls="icon-search" onclick="sy_searchFun()">搜索</a>
            <a class="easyui-linkbutton" iconCls="icon-reload" onclick="sy_resetFun()">重置</a>
        </div>
    </form>
</div>
<div data-options="region:'center',border:false">
    <table id="grid" class="easyui-datagrid" fit="true"
           data-options="url: '<%=contextPath%>/sys/role/list',method: 'post',pagination: true,rownumbers:true,idField: 'id', fitColumns:true,singleSelect:true,striped:true,sortName:'sortIndex',sortOrder:'asc',toolbar: '#toolbar'">
        <thead>
        <tr>
            <th data-options="field:'roleName'" width="100" sortable="true">角色名称</th>
            <th data-options="field:'sortIndex'" width="100" sortable="true">排序</th>
            <th data-options="field:'status',dictionary:'status',formatter:sy_dict" width="100">状态</th>
        </tr>
        </thead>
    </table>
</div>
<!-- 按钮-->
<div id="toolbar" style="display: none;">
    <t:button action="role_add" iconCls="icon-add" buttonName="新增" onclick=""/>
    <t:button action="role_edit" iconCls="icon-edit" buttonName="编辑" onclick=""/>
    <t:button action="role_remove" iconCls="icon-remove" buttonName="删除" onclick=""/>
    <t:button action="role_allocateRes" iconCls="icon-back" buttonName="分配资源" onclick=""/>

</div>
</body>
</html>



